package com.gopay.common.domain.riskcontrol;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author  gaocl
 * 风控快捷支付风险模型配置表
 * Created by gaocl on 2017/11/17.
 */
@Entity
@Table(name = "RC_QUICKPAY_MODEL_CONFIG")
public class RcQuickpayModelConfig extends BaseEntity {

    /**
     * 主键
     */
    @Id
    @Column(name = "ID")
    private String id;
    /**
     * 规则编号
     */
    @Column(name = "RULE_CODE")
    private String ruleCode;
    /**
     * 资源ID
     */
    @Column(name = "CODE_ID")
    private BigDecimal codeId;
    /**
     * 父资源ID
     */
    @Column(name = "PARENT_CODE_ID")
    private BigDecimal parentCodeId;
    /**
     * 级别
     */
    @Column(name = "CODE_LEVEL")
    private BigDecimal codeLevel;
    /**
     * 风险内容
     */
    @Column(name = "RISK_CONTENT")
    private String riskContent;
    /**
     * 参数1
     */
    @Column(name = "PARAM1")
    private String param1;
    /**
     * 参数2
     */
    @Column(name = "PARAM2")
    private String param2;
    /**
     * 风险级别
     */
    @Column(name = "RISK_LEVEL")
    private String riskLevel;
    /**
     * 处理方式
     */
    @Column(name = "DEAL_TYPE")
    private String dealType;
    /**
     * 状态
     */
    @Column(name = "STAT")
    private String stat;
    /**
     * 模型类型 D-借记 C-贷记
     */
    @Column(name = "MODEL_TYPE")
    private String modelType;
    /**
     * 创建时间
     */
    @Column(name = "CREATED_TS")
    private Date createdTs;
    /**
     * 最后操作时间
     */
    @Column(name = "LAST_UPD_TS")
    private Date lastUpdTs;
    /**
     * 最后操作用户ID
     */
    @Column(name = "LAST_UPD_USER_ID")
    private String lastUpdUserId;
    /**
     * 乐观锁版本号
     */
    @Version
    @Column(name = "VERSION", nullable = false, precision = 22, scale = 0)
    private Integer version;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRuleCode() {
        return ruleCode;
    }

    public void setRuleCode(String ruleCode) {
        this.ruleCode = ruleCode;
    }

    public BigDecimal getCodeId() {
        return codeId;
    }

    public void setCodeId(BigDecimal codeId) {
        this.codeId = codeId;
    }

    public BigDecimal getParentCodeId() {
        return parentCodeId;
    }

    public void setParentCodeId(BigDecimal parentCodeId) {
        this.parentCodeId = parentCodeId;
    }

    public BigDecimal getCodeLevel() {
        return codeLevel;
    }

    public void setCodeLevel(BigDecimal codeLevel) {
        this.codeLevel = codeLevel;
    }

    public String getRiskContent() {
        return riskContent;
    }

    public void setRiskContent(String riskContent) {
        this.riskContent = riskContent;
    }

    public String getParam1() {
        return param1;
    }

    public void setParam1(String param1) {
        this.param1 = param1;
    }

    public String getParam2() {
        return param2;
    }

    public void setParam2(String param2) {
        this.param2 = param2;
    }

    public String getRiskLevel() {
        return riskLevel;
    }

    public void setRiskLevel(String riskLevel) {
        this.riskLevel = riskLevel;
    }

    public String getDealType() {
        return dealType;
    }

    public void setDealType(String dealType) {
        this.dealType = dealType;
    }

    public String getStat() {
        return stat;
    }

    public void setStat(String stat) {
        this.stat = stat;
    }

    public String getModelType() {
        return modelType;
    }

    public void setModelType(String modelType) {
        this.modelType = modelType;
    }

    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getLastUpdUserId() {return lastUpdUserId;}

    public void setLastUpdUserId(String lastUpdUserId) {this.lastUpdUserId = lastUpdUserId;}
}
